/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */

import entity.Pet;
import factory.PetDaoFactory;
import service.PetService;
import service.PetServiceImpl;

/**
 * @author 科泰集团教研团队
 * @version 1.0.0
 * @packageName com.ktjiaoyu
 * @fileName Main.java
 * @createTime 2024/9/5 20:54
 * @lastModify 2024/9/5 20:54
 */
public class Main {
    public static void main(String[] args) {
        // 领导要修改成oralce实现，只需修改一个变量即可切换
        PetDaoFactory.defaultBeanName = "petDaoOracleImpl";
        // 创建PetService
        PetService petService = new PetServiceImpl();
        Pet pet = new Pet();
        pet.setName("小马喽");
        petService.save(pet);
    }
}
